import { RouteConfig } from "vue-router";
import ApplyRate from '@/pages/partner/applyRate.vue';
import Apply from '@/pages/partner/apply.vue';
import Detail from '@/pages/partner/detail.vue';
import InviteRecord from '@/pages/partner/inviteRecord.vue';
import LockDetail from '@/pages/partner/lockDetail.vue';
import LockRecord from '@/pages/partner/lockRecord.vue';
import Team from '@/pages/partner/team.vue';
import { ROUTE_NAME } from "@/lib/constant";

export const routes: RouteConfig[] = [
    {
        path: '/partner/apply_rate',
        name: ROUTE_NAME.PARTNER_APPLY_RATE,
        meta: {
            title: '申请进度',
        },
        component: ApplyRate,
    },
    {
        path: '/partner/apply',
        name: ROUTE_NAME.PARTNER_APPLY,
        meta: {
            title: '申请',
        },
        component: Apply,
    },
    {
        path: '/partner/detail',
        name: ROUTE_NAME.PARTNER_DETAIL,
        meta: {
            title: '城市合伙人',
            needInfo: true,
        },
        component: Detail,
    },
    {
        path: '/partner/invite_record',
        name: ROUTE_NAME.PARTNER_INVITE_RECORD,
        meta: {
            title: '申请',
        },
        component: InviteRecord,
    },
    {
        path: '/partner/lock_detail',
        name: ROUTE_NAME.PARTNER_LOCK_DETAIL,
        meta: {
            title: '金额明细',
        },
        component: LockDetail,
    },
    {
        path: '/partner/lock_record',
        name: ROUTE_NAME.PARTNER_LOCK_RECORD,
        meta: {
            title: '锁定金额',
        },
        component: LockRecord,
    },
    {
        path: '/partner/team',
        name: ROUTE_NAME.PARTNER_TEAM,
        meta: {
            title: '我的团队',
        },
        component: Team,
    },
];
